import { http } from "@/utils/http";

/** 会议列表
 * @param page pageSize actType keyWord status
 */
export const getMeetList = (data?: any) => {
  return http.request("post", "/admin/meeting/type/list", { data });
};
/**
 * 添加会议
 * @param title type banner content status author
 */
export const addMeet = (data?: any) => {
  return http.request("post", "/admin/meeting/type/add", { data });
};
/**
 * 更新会议
 * @param newsId title type banner content status author
 */
export const setMeet = (data?: any) => {
  return http.request("post", "/admin/meeting/type/set", { data });
};
/**
 * 会议详情
 * @param newsId title type banner content status author
 */
export const getMeetInfo = (mId: number) => {
  return http.request("post", "/admin/meeting/type/info", { data: { mId } });
};

/**
 * 会议报名列表
 * @param page pageSize actType keyWord uId aoId auCode
 */
export const getMeetingBuyList = (data?: any) => {
  return http.request("post", "/admin/meeting/buy/list", { data });
};
/**
 * 会议退款
 * @param buyIds int[]
 */
export const meetingRefund = (data?: any) => {
  return http.request("post", "/admin/meeting/buy/refund", { data });
};
